#!/bin/sh
	rsqlt=`rm -rf *.o`

gcc -c atcommand.c -I/usr/include/mysql/
gcc -c battle.c -I/usr/include/mysql/
gcc -c chat.c  -I/usr/include/mysql/
gcc -c chrif.c  -I/usr/include/mysql/
gcc -c clif.c  -I/usr/include/mysql/
gcc -c core.c  -I/usr/include/mysql/
gcc -c db.c  -I/usr/include/mysql/
gcc -c grfio.c  -I/usr/include/mysql/
gcc -c guild.c  -I/usr/include/mysql/
gcc -c intif.c  -I/usr/include/mysql/
gcc -c itemdb.c  -I/usr/include/mysql/
gcc -c lock.c  -I/usr/include/mysql/
gcc -c magic.c  -I/usr/include/mysql/
gcc -c magic-expr.c  -I/usr/include/mysql/
gcc -c magic-interpreter-base.c  -I/usr/include/mysql/
gcc -c magic-interpreter-lexer.c  -I/usr/include/mysql/
gcc -c magic-interpreter-parser.c  -I/usr/include/mysql/
gcc -c magic-stmt.c  -I/usr/include/mysql/
gcc -c malloc.c  -I/usr/include/mysql/
gcc -c map.c  -I/usr/include/mysql/
gcc -c mob.c  -I/usr/include/mysql/
gcc -c npc.c  -I/usr/include/mysql/
gcc -c nullpo.c  -I/usr/include/mysql/
gcc -c party.c  -I/usr/include/mysql/
gcc -c path.c  -I/usr/include/mysql/
gcc -c pc.c  -I/usr/include/mysql/
gcc -c script.c  -I/usr/include/mysql/
gcc -c skill.c  -I/usr/include/mysql/
gcc -c socket.c  -I/usr/include/mysql/
gcc -c storage.c  -I/usr/include/mysql/
gcc -c timer.c  -I/usr/include/mysql/
gcc -c tmw.c  -I/usr/include/mysql/
gcc -c trade.c  -I/usr/include/mysql/
gcc -c utils.c  -I/usr/include/mysql/

gcc -o ../../map-server map.o atcommand.c battle.c chat.c chrif.c clif.c core.c db.c grfio.c guild.c intif.c itemdb.c lock.c magic.c magic-expr.c magic-interpreter-base.c magic-interpreter-lexer.c magic-interpreter-parser.c magic-stmt.c malloc.c mob.c npc.c nullpo.c party.c path.c  pc.c script.c skill.c  socket.c storage.c timer.c tmw.c  trade.c  utils.c  -L/usr/lib/mysql/ -lmysqlclient -lz
